<?php
/**
 * IG_Log_Formatter_Custom
 *
 * @author mmxie
 * @copyright Copyright (c) 2009 Green Shore (http://www.iwgame.com)
 * @version $Id: Custom.php 929 2011-10-27 07:52:50Z mmxie $
 */
class IG_Log_Formatter_Custom extends Zend_Log_Formatter_Abstract
{
    public function format($event)
    {
        $text = '';
        foreach ($event as $key => $val) {
            $text .= "$key: " . print_r($val, true) . PHP_EOL;
        }
        return $text . PHP_EOL;
    }

    public function __construct()
    {
    }

    /**
     * Factory for Zend_Log_Formatter_Simple classe
     *
     * @param array|Zend_Config $options
     * @return Zend_Log_Formatter_Simple
     */
    public static function factory($options = null)
    {
        return new self();
    }
}